Support/Resistance Breakout DetectorThis indicator automatically detects and plots dynamic support and resistance levels using pivot highs and lows.
✅ It draws red resistance lines and blue support lines,
✅ The lines extend forward but automatically stop when the price touches them,
✅ It monitors for breakouts with strong volume,
✅ When a breakout happens, it shows labels like “B” or “Bull Wick” / “Bear Wick” on the chart,
✅ It also triggers alerts when support or resistance breaks with high volume.
Main settings:
Pivot lookback period
Show/hide breakout labels
Minimum volume for breakout
Maximum extension length for lines
This tool helps traders easily spot key price levels and watch for meaningful breakouts.
Search in scripts for "support resistance"
Support, Resistance, MA, and ADXSummary
This comprehensive script provides traders with a tool that highlights critical levels of support and resistance, detects significant price breakouts with volume confirmation, identifies potential reversals with wick analysis, and plots a moving average that changes color based on trend strength as indicated by the ADX. It is useful for spotting entry and exit points, confirming breakouts, and identifying trend direction and strength.
Support/Resistance LinesThis script displays support and resistance lines at the levels you enter in the Input Settings. It does not perform the S/R calculations.
It allows you to:
Enter up to 6 support and 6 resistance lines each; any with value of 0 will be hidden
Specify one ticker that it applies to, so the lines will be hidden if you switch charts
Set the text size, color, horizontal offset, and whether to display the price values for each line
Set the color, transparency and line type for the S/R lines
Support Resistance ZonesSupport and resistance zones are used across all markets by traders and bots alike to identify liquidity and possible bounce areas. This script automates the drawing of those zones based on a number of variables, such as lookback period, channel width, number of touch confirmations and more.
This script also implements a some useful alerts so you can rest easy until the market hits a point of interest:
Enter SR Zone
Exit SR Zone
Break Upper Resistance
Break Lower Resistance
Support Resistance DiagonalClassic diagonal support and resistance based on pivot points. As a result, they form triangles, wedges, channels and other patterns. Realtime update up to 1 second chart.
Support/Resistance x3Support and Resistance Levels for 3 time frames, based on volume at fractal levels
Original script is thanks to synapticex I have just migrated to version 3 and heavily modified it
Support/Resistance V2 IndicatorWith this support and resistance indicator, if you want more levels just change the timeframe it looks at in the settings. It will pull the SR levels off the timeframe specified in the settings. Note: SR1 and SR2 timeframe should match.
Support Resistance - Aging [Example]Hello All,
First all of Thanks to Pine Team for adding Arrays to Pine!
In this script I tried to make example for
1. Finding S/R lines using highest/lowest function
2. Using 1D array as 2D (we keep S/R levels and age)
3. "Age" usage for S/R levels, getting older on each candle and changing colors by their age (maximum age is 127 then it disappears)
You can use "Close"/Open " or " High/Low " as source.
There is an option for the background color, by default it's Black, do not forget to set it accordingly :)
Enjoy!
Standard Deviation Pivot pointsSupport Resistance points that are calculated based on the standard deviation of the traditional pivot point(previous session's high, low and close). More often stocks tend to oscillate between 3 levels of deviation forming day's high or low. A breakout of the 3rd SR level with volume indicates a strong trend day.
Punji's Dynamic Monthly EMA/SMA 5,9,21,50Punji's Dynamic Monthly EMA/SMA 5,9,21,50
Overview:
This indicator displays monthly timeframe moving averages as horizontal dotted lines extending to the right of your chart, regardless of what timeframe you're currently viewing. It includes four key monthly moving averages: EMA 5, EMA 9, EMA 21, and SMA 50.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Features:
Clean Chart Design
Unlike traditional moving average lines that clutter your chart with curves across all candles, this indicator uses horizontal dotted lines that extend only from the current price level to the right edge of your screen. The dotted line style creates clear visual breaks while maintaining readability.
Multi-Timeframe Analysis
View monthly moving averages on any timeframe (1min, 5min, 15min, 1hr, 4hr, daily, weekly, etc.) without switching charts. Perfect for traders who want to see the highest timeframe context while trading any lower timeframe.
Fully Customizable
Toggle each moving average on/off independently
Adjust the period length for each MA (default: 5, 9, 21, 50)
Customize colors for each line (default gradient: green → teal → yellow → red)
Master toggle to show/hide all monthly lines at once
All lines use dotted style for clear visual distinction
Professional Color Scheme
EMA 5: Bright Green (#4CAF50)
EMA 9: Teal (#009688)
EMA 21: Yellow (#FFEB3B)
SMA 50: Light Red (#FF6B6B)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Benefits of Horizontal Dotted Lines:
Reduced Visual Noise
Horizontal lines keep your price action clean and easy to read while still providing critical monthly support/resistance levels. The dotted style adds visual distinction without being overwhelming.
Focus on Current Monthly Levels
What matters most is where the monthly MAs are NOW relative to price - horizontal lines highlight this instantly without requiring you to trace curved lines backward through history.
Better Price Action Visibility
See candlestick patterns, volume profiles, and support/resistance levels clearly without MA lines crossing through them. Your chart remains uncluttered and analysis-ready.
Quick Reference for Monthly Context
Instantly identify if price is above or below key monthly moving averages without following curved lines across the chart. Perfect for all traders who need to respect monthly structure and major trend direction.
Professional Appearance
Clean, minimalist design with dotted lines preferred by institutional traders and technical analysts who value both aesthetics and functionality.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use Cases:
Position Traders & Investors
Monitor monthly moving averages for major trend direction and long-term support/resistance zones. Monthly levels are among the most significant in technical analysis.
Swing Traders
Track monthly moving averages as major dynamic support/resistance levels for position sizing and risk management. Monthly levels often represent the strongest market structure.
Multi-Timeframe Analysis
Combine with daily and weekly charts to see complete timeframe confluence. Monthly levels provide the macro trend context for all trading decisions.
Trend Identification
Quickly identify monthly trend direction and major reversal zones. When price is above all monthly MAs, the macro trend is bullish; below all MAs indicates bearish monthly structure.
Risk Management
Use monthly moving averages as ultimate stop-loss zones for long-term positions. Breaking monthly MAs often signals significant trend changes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Specifications:
Pine Script v5
Timeframe: Monthly (M)
Moving Averages: EMA 5, EMA 9, EMA 21, SMA 50
Line Style: Dotted (all lines)
Line Width: 2
Overlay: True (displays on main chart)
Resource Usage: Minimal (4 security calls)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best Practices:
Combine with PUNJI Dynamic Daily & Weekly EMA/SMA Indicators
For the ultimate multi-timeframe analysis, use this monthly indicator alongside "Punjis Dynamic Daily EMA/SMA 5,9,21,50,100,200 Levels" (solid lines) and "Punji's Dynamic Weekly EMA/SMA 5,9,21,50" (dashed lines). The three PUNJI indicators together provide complete insight into daily, weekly, and monthly market structure without cluttering your chart. Daily = Solid lines, Weekly = Dashed lines, Monthly = Dotted lines. This combination gives you a complete view of all major timeframe levels simultaneously.
Respect Monthly Structure
Monthly moving averages carry the most significant weight in technical analysis. Use them as major support/resistance zones and ultimate trend filters for all your trading decisions.
Customize to Your Strategy
Adjust the lengths and colors to match your personal trading methodology. Some traders prefer different EMA/SMA periods based on their market and investment timeframe.
Keep Charts Clean
Toggle off lines you're not actively using to maintain maximum chart clarity. The master toggle allows quick show/hide of all monthly levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is perfect for traders and investors who want to maintain awareness of monthly market structure and major trend direction while keeping their charts clean, professional, and easy to read.
Punji's Dynamic Weekly EMA/SMA 5,9,21,50Punji's Dynamic Weekly EMA/SMA 5,9,21,50
Overview:
This indicator displays weekly timeframe moving averages as horizontal dashed lines extending to the right of your chart, regardless of what timeframe you're currently viewing. It includes four key weekly moving averages: EMA 5, EMA 9, EMA 21, and SMA 50.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Features:
Clean Chart Design
Unlike traditional moving average lines that clutter your chart with curves across all candles, this indicator uses horizontal dashed lines that extend only from the current price level to the right edge of your screen. The dashed line style creates clear visual breaks while maintaining readability.
Multi-Timeframe Analysis
View weekly moving averages on any intraday timeframe (1min, 5min, 15min, 1hr, 4hr, daily, etc.) without switching charts. Perfect for traders who want to see higher timeframe context while trading shorter timeframes.
Fully Customizable
Toggle each moving average on/off independently
Adjust the period length for each MA (default: 5, 9, 21, 50)
Customize colors for each line (default gradient: green → teal → yellow → red)
Master toggle to show/hide all weekly lines at once
All lines use dashed style for clear visual distinction
Professional Color Scheme
EMA 5: Bright Green (#4CAF50)
EMA 9: Teal (#009688)
EMA 21: Yellow (#FFEB3B)
SMA 50: Light Red (#FF6B6B)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Benefits of Horizontal Dashed Lines:
Reduced Visual Noise
Horizontal lines keep your price action clean and easy to read while still providing critical weekly support/resistance levels. The dashed style adds visual interest without being overwhelming.
Focus on Current Weekly Levels
What matters most is where the weekly MAs are NOW relative to price - horizontal lines highlight this instantly without requiring you to trace curved lines backward through history.
Better Price Action Visibility
See candlestick patterns, volume profiles, and support/resistance levels clearly without MA lines crossing through them. Your chart remains uncluttered and analysis-ready.
Quick Reference for Weekly Context
Instantly identify if price is above or below key weekly moving averages without following curved lines across the chart. Perfect for intraday traders who need to respect weekly structure.
Professional Appearance
Clean, minimalist design with dashed lines preferred by institutional traders and technical analysts who value both aesthetics and functionality.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use Cases:
Day Traders
Monitor higher timeframe weekly levels on intraday charts (5min, 15min, 1hr) to stay aware of major support/resistance zones and trend direction from the weekly perspective.
Swing Traders
Track weekly moving averages as dynamic support/resistance levels for position entries and exits. Weekly levels often act as strong magnets for price action.
Multi-Timeframe Analysis
Combine with daily or 4-hour charts to see multiple timeframe confluence without cluttering your workspace with overlapping curved lines.
Trend Identification
Quickly identify weekly trend direction and potential reversal zones. When price is above all weekly MAs, the weekly trend is bullish; below all MAs indicates bearish weekly structure.
Clean Workspace Trading
Ideal for price action traders who need clean charts for pattern recognition, order flow analysis, and technical setups without visual interference from traditional moving averages.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Specifications:
Pine Script v5
Timeframe: Weekly (W)
Moving Averages: EMA 5, EMA 9, EMA 21, SMA 50
Line Style: Dashed (all lines)
Line Width: 2
Overlay: True (displays on main chart)
Resource Usage: Minimal (4 security calls)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best Practices:
Combine with PUNJI Dynamic Daily & Monthly EMA/SMA Indicators
Use this alongside "Punjis Dynamic Daily EMA/SMA 5,9,21,50,100,200 Levels" (solid lines) and "Punji's Dynamic Monthly EMA/SMA 5,9,21,50" (dotted lines) for complete multi-timeframe analysis. The three indicators together provide comprehensive insight into daily, weekly, and monthly market structure without cluttering your chart. Daily = Solid lines, Weekly = Dashed lines, Monthly = Dotted lines.
Respect Weekly Structure
Weekly moving averages carry significant weight in the market. Use them as major support/resistance zones and trend filters for your trading decisions.
Customize to Your Strategy
Adjust the lengths and colors to match your personal trading methodology. Some traders prefer different EMA/SMA periods based on their market and timeframe.
Keep Charts Clean
Toggle off lines you're not actively using to maintain maximum chart clarity. The master toggle allows quick show/hide of all weekly levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is perfect for traders who want to maintain awareness of weekly market structure while keeping their charts clean, professional, and easy to read.
Punji's Dynamic Weekly EMA/SMA 5,9,21,50Punji's Dynamic Weekly EMA/SMA 5,9,21,50
Overview:
This indicator displays weekly timeframe moving averages as horizontal dashed lines extending to the right of your chart, regardless of what timeframe you're currently viewing. It includes four key weekly moving averages: EMA 5, EMA 9, EMA 21, and SMA 50.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Features:
Clean Chart Design
Unlike traditional moving average lines that clutter your chart with curves across all candles, this indicator uses horizontal dashed lines that extend only from the current price level to the right edge of your screen. The dashed line style creates clear visual breaks while maintaining readability.
Multi-Timeframe Analysis
View weekly moving averages on any intraday timeframe (1min, 5min, 15min, 1hr, 4hr, daily, etc.) without switching charts. Perfect for traders who want to see higher timeframe context while trading shorter timeframes.
Fully Customizable
Toggle each moving average on/off independently
Adjust the period length for each MA (default: 5, 9, 21, 50)
Customize colors for each line (default gradient: green → teal → yellow → red)
Master toggle to show/hide all weekly lines at once
All lines use dashed style for clear visual distinction
Professional Color Scheme
EMA 5: Bright Green (#4CAF50)
EMA 9: Teal (#009688)
EMA 21: Yellow (#FFEB3B)
SMA 50: Light Red (#FF6B6B)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Benefits of Horizontal Dashed Lines:
Reduced Visual Noise
Horizontal lines keep your price action clean and easy to read while still providing critical weekly support/resistance levels. The dashed style adds visual interest without being overwhelming.
Focus on Current Weekly Levels
What matters most is where the weekly MAs are NOW relative to price - horizontal lines highlight this instantly without requiring you to trace curved lines backward through history.
Better Price Action Visibility
See candlestick patterns, volume profiles, and support/resistance levels clearly without MA lines crossing through them. Your chart remains uncluttered and analysis-ready.
Quick Reference for Weekly Context
Instantly identify if price is above or below key weekly moving averages without following curved lines across the chart. Perfect for intraday traders who need to respect weekly structure.
Professional Appearance
Clean, minimalist design with dashed lines preferred by institutional traders and technical analysts who value both aesthetics and functionality.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use Cases:
Day Traders
Monitor higher timeframe weekly levels on intraday charts (5min, 15min, 1hr) to stay aware of major support/resistance zones and trend direction from the weekly perspective.
Swing Traders
Track weekly moving averages as dynamic support/resistance levels for position entries and exits. Weekly levels often act as strong magnets for price action.
Multi-Timeframe Analysis
Combine with daily or 4-hour charts to see multiple timeframe confluence without cluttering your workspace with overlapping curved lines.
Trend Identification
Quickly identify weekly trend direction and potential reversal zones. When price is above all weekly MAs, the weekly trend is bullish; below all MAs indicates bearish weekly structure.
Clean Workspace Trading
Ideal for price action traders who need clean charts for pattern recognition, order flow analysis, and technical setups without visual interference from traditional moving averages.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Specifications:
Pine Script v5
Timeframe: Weekly (W)
Moving Averages: EMA 5, EMA 9, EMA 21, SMA 50
Line Style: Dashed (all lines)
Line Width: 2
Overlay: True (displays on main chart)
Resource Usage: Minimal (4 security calls)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best Practices:
Combine with PUNJI Dynamic Daily & Monthly EMA/SMA Indicators
Use this alongside "Punjis Dynamic Daily EMA/SMA 5,9,21,50,100,200 Levels" (solid lines) and "Punji's Dynamic Monthly EMA/SMA 5,9,21,50" (dotted lines) for complete multi-timeframe analysis. The three indicators together provide comprehensive insight into daily, weekly, and monthly market structure without cluttering your chart. Daily = Solid lines, Weekly = Dashed lines, Monthly = Dotted lines.
Respect Weekly Structure
Weekly moving averages carry significant weight in the market. Use them as major support/resistance zones and trend filters for your trading decisions.
Customize to Your Strategy
Adjust the lengths and colors to match your personal trading methodology. Some traders prefer different EMA/SMA periods based on their market and timeframe.
Keep Charts Clean
Toggle off lines you're not actively using to maintain maximum chart clarity. The master toggle allows quick show/hide of all weekly levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is perfect for traders who want to maintain awareness of weekly market structure while keeping their charts clean, professional, and easy to read.
Punji's Dynamic Weekly EMA/SMA 5,9,21,50Punji's Dynamic Weekly EMA/SMA 5,9,21,50
Overview:
This indicator displays weekly timeframe moving averages as horizontal dashed lines extending to the right of your chart, regardless of what timeframe you're currently viewing. It includes four key weekly moving averages: EMA 5, EMA 9, EMA 21, and SMA 50.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Features:
Clean Chart Design
Unlike traditional moving average lines that clutter your chart with curves across all candles, this indicator uses horizontal dashed lines that extend only from the current price level to the right edge of your screen. The dashed line style creates clear visual breaks while maintaining readability.
Multi-Timeframe Analysis
View weekly moving averages on any intraday timeframe (1min, 5min, 15min, 1hr, 4hr, daily, etc.) without switching charts. Perfect for traders who want to see higher timeframe context while trading shorter timeframes.
Fully Customizable
Toggle each moving average on/off independently Adjust the period length for each MA (default: 5, 9, 21, 50) Customize colors for each line (default gradient: green → teal → yellow → red) Master toggle to show/hide all weekly lines at once All lines use dashed style for clear visual distinction
Professional Color Scheme
EMA 5: Bright Green (#4CAF50) EMA 9: Teal (
#009688) EMA 21: Yellow (#FFEB3B) SMA 50: Light Red (
#FF6B6B)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Benefits of Horizontal Dashed Lines:
Reduced Visual Noise
Horizontal lines keep your price action clean and easy to read while still providing critical weekly support/resistance levels. The dashed style adds visual interest without being overwhelming.
Focus on Current Weekly Levels
What matters most is where the weekly MAs are NOW relative to price - horizontal lines highlight this instantly without requiring you to trace curved lines backward through history.
Better Price Action Visibility
See candlestick patterns, volume profiles, and support/resistance levels clearly without MA lines crossing through them. Your chart remains uncluttered and analysis-ready.
Quick Reference for Weekly Context
Instantly identify if price is above or below key weekly moving averages without following curved lines across the chart. Perfect for intraday traders who need to respect weekly structure.
Professional Appearance
Clean, minimalist design with dashed lines preferred by institutional traders and technical analysts who value both aesthetics and functionality.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use Cases:
Day Traders
Monitor higher timeframe weekly levels on intraday charts (5min, 15min, 1hr) to stay aware of major support/resistance zones and trend direction from the weekly perspective.
Swing Traders
Track weekly moving averages as dynamic support/resistance levels for position entries and exits. Weekly levels often act as strong magnets for price action.
Multi-Timeframe Analysis
Combine with daily or 4-hour charts to see multiple timeframe confluence without cluttering your workspace with overlapping curved lines.
Trend Identification
Quickly identify weekly trend direction and potential reversal zones. When price is above all weekly MAs, the weekly trend is bullish; below all MAs indicates bearish weekly structure.
Clean Workspace Trading
Ideal for price action traders who need clean charts for pattern recognition, order flow analysis, and technical setups without visual interference from traditional moving averages.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Specifications:
Pine Script v5 Timeframe: Weekly (W) Moving Averages: EMA 5, EMA 9, EMA 21, SMA 50 Line Style: Dashed (all lines) Line Width: 2 Overlay: True (displays on main chart) Resource Usage: Minimal (4 security calls)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best Practices:
Combine with PUNJI Dynamic Daily EMA/SMA Indicator
Use this alongside "Punjis Dynamic Daily EMA/SMA 5,9,21,50,100,200 Levels" for complete multi-timeframe analysis. The daily indicator uses solid lines while this weekly indicator uses dashed lines for easy visual distinction. Together, they provide comprehensive insight into both daily and weekly market structure without cluttering your chart.
Respect Weekly Structure
Weekly moving averages carry significant weight in the market. Use them as major support/resistance zones and trend filters for your trading decisions.
Customize to Your Strategy
Adjust the lengths and colors to match your personal trading methodology. Some traders prefer different EMA/SMA periods based on their market and timeframe.
Keep Charts Clean
Toggle off lines you're not actively using to maintain maximum chart clarity. The master toggle allows quick show/hide of all weekly levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is perfect for traders who want to maintain awareness of weekly market structure while keeping their charts clean, professional, and easy to read.
Punjis Dynamic Daily EMA/SMA 5,9,21,50,100 LevelsPunjis Dynamic Daily EMA/SMA 5,9,21,50,100 Levels
Overview:
This indicator displays daily timeframe moving averages as horizontal lines extending to the right of your chart, regardless of what timeframe you're currently viewing. It includes six key moving averages: EMA 5, EMA 9, EMA 21, SMA 50, SMA 100, and SMA 200.
Key Features:
Clean Chart Design: Unlike traditional moving average lines that clutter your chart with curves across all candles, this indicator uses horizontal lines that extend only from the current price level to the right edge of your screen
Multi-Timeframe Analysis: View daily moving averages on any intraday timeframe (1min, 5min, 15min, etc.) without switching charts
Fully Customizable:
Toggle each moving average on/off independently
Adjust the period length for each MA
Customize colors for each line
Master toggle to show/hide all lines at once
Reduced Visual Noise: Horizontal lines keep your price action clean and easy to read while still providing critical support/resistance levels
Professional Layout: Perfect for traders who need to monitor multiple key levels without obscuring candlestick patterns and chart analysis
Benefits of Horizontal Lines:
Cleaner Charts: Traditional MAs draw lines through every candle, creating visual clutter. Horizontal lines only show current values, keeping your chart clean
Focus on Current Levels: What matters most is where the MAs are NOW relative to price - horizontal lines highlight this instantly
Better Price Action Visibility: See candlestick patterns, volume, and support/resistance levels clearly without MA lines crossing through them
Quick Reference: Instantly identify if price is above or below key moving averages without following curved lines across the chart
Professional Appearance: Clean, minimalist design preferred by institutional traders and technical analysts
Use Cases:
Day traders monitoring higher timeframe levels on intraday charts
Swing traders tracking daily moving averages as dynamic support/resistance
Multi-timeframe analysis without chart switching
Identifying trend direction and potential reversal zones
Clean workspace for pattern recognition and price action trading
Support and Resistance ZoneSupport and Resistance Zone Indicator :
Introduction :
The purpose of this indicator is to identify the chart symbol's main supports and resistances. It displays these key zones, which are very important psychological points for traders. Since support and resistance are not very precise levels, the indicator displays them as zones.
Pivots :
Pivots are a key concept in identifying support and resistance. The indicator uses two types of pivot:
Pivot high : This is a high point that has not been reached by a user-defined number of candles on either the left and right of this candle. The " left pivot leg " is the number of candles before this pivot point that have not reached the realized high, and the " right pivot leg " is the number of candles after this pivot point that have not reached this high. If these two conditions are met, the pivot point is considered a turning point, and resistance is probably the cause.
Pivot low : This is a low point that has not been reached by a user-defined number of candles on either the left or right. The " left pivot leg " is the number of candles before this pivot point that have not reached the candle low, and the " right pivot leg " is the number of candles after this pivot point that have not reached this low. If these two conditions are met, the pivot point is considered a turning point, and support is probably the cause.
Support/Resistance area :
If a pivot point has been identified, the indicator considers it a resistance if it's a pivot high, or a support if it's a pivot low. To define the support or resistance zone, we'll use the ATR (Average True Range), an indicator that measures asset volatility. We'll take the ATR of the candle for which the pivot was spotted, and use it as the width of the support or resistance zone. Thus the upper line of support/resistance is at pivot+atr/2 and the lower line is at pivot-atr/2 . The greater the volatility, the larger the zone.
New Support/Resistance :
If a new pivot has been identified, but the level of this pivot lies between the lower line and the upper line of the previous support or resistance, the indicator considers this to be the same support or resistance as before. In this case, no new support or resistance is created. The pivot must be outside the area of the previous support or resistance to be validated.
Anticipated Support/Resistance :
This indicator also allows early detection of support or resistance. To do this, the value of the right pivot legs will be shortened in order to find these areas more quickly. The support or resistance will then be considered anticipated and may disappear at any time if the high/low is reached. On the other hand, if the high/low is not reached, and a number of candles equal to the " Right Pivot Legs" parameter has elapsed since the detection of this anticipated support/resistance, it will be considered validated and will integrate the other supports/resistances of the chart.
Extended supports/resistances :
For a more optimal view, the indicator allows the user to choose the number of last support or resistance levels to be extended to the last candle. This must be specified in the indicator parameters.
Parameters :
Pivot Legs : Determine the left and right legs of the pivot i.e the number of candle before and after the pivot that doesn’t reach pivot point. The pivot is validated only if this two conditions are verified.
Extend Last Supports : Number of supports to extend to the last bar
Extend Last Resistances : Number of resistances to extend to the last bar
Show Support/Resistance Anticipated : If yes, will find anticipated support and resistance
Right Pivot Legs for Anticipation : Determine the right legs of pivots to find faster a support or a resistance.
Conclusion :
This indicator plot support and resistance zones based on pivot. The width of support and resistance zones are calculated with ATR. Possibility to find anticipated support and resistance in order to have more timeliness informations.
Enjoy the indicator and don’t forget to take the trade ;)
Fractal Fade Pro IndicatorA revolutionary contrarian trading indicator that applies chaos theory, fractal mathematics, and market entropy to generate high-probability reverse signals. This indicator fades traditional technical signals, providing BUY signals when conventional indicators say SELL, and SELL signals when they say BUY.
Full Description:
Most traders follow the herd. QFCI does the opposite. It identifies when conventional technical analysis is about to fail by detecting mathematical patterns of exhaustion in market structure.
How It Works (Technical Overview):
The indicator combines three sophisticated mathematical approaches:
Fractal Dimension Analysis: Measures the "roughness" of price movements using fractal mathematics
Market Entropy Calculation: Quantifies the randomness and disorder in price returns using information theory
Phase Space Reconstruction: Analyzes price evolution in multi-dimensional state space from chaos theory
Signal Generation Process:
Step 1: Market Regime Detection
Chaotic Regime: High fractal complexity + rising entropy (avoid trading)
Trending Regime: Low fractal complexity + high phase space distance (fade breakouts)
Mean-Reverting Regime: Very low fractal complexity (fade extremes)
Step 2: Reverse Signal Logic
When traditional indicators would give:
BUY signal (breakout, oversold bounce, volatility spike) → QFCI shows SELL
SELL signal (breakdown, overbought rejection, volatility crash) → QFCI shows BUY
Step 3: Smart Signal Filtering
No consecutive same-direction signals
Adjustable minimum bars between signals
Multiple confirmation layers required
Unique Features:
1. Mathematical Innovation:
Original fractal dimension algorithm (not standard indicators)
Market entropy calculation from information theory
Phase space reconstruction from chaos theory
Multi-regime adaptive logic
2. Trading Psychology Advantage:
Contrarian by design - profits from market overreactions
Fades retail trader mistakes - enters when others are exiting
Reduces overtrading - strict signal frequency controls
3. Clean Visual Interface:
Only BUY/SELL labels - no chart clutter
Clear directional arrows - immediate signal recognition
Built-in alerts - never miss a trade
Recommended Settings:
Default (Balanced Approach):
Fractal Depth: 20
Entropy Period: 200
Min Bars Between Signals: 100
Aggressive Trading:
Fractal Depth: 10-15
Entropy Period: 100-150
Min Bars Between Signals: 50-75
Conservative Trading:
Fractal Depth: 30-40
Entropy Period: 300-400
Min Bars Between Signals: 150-200
Optimal Timeframes:
Primary: Daily, Weekly (best performance)
Secondary: 4-Hour, 12-Hour
Can work on: 1-Hour (with adjusted parameters)
How to Use:
For Beginners:
Apply indicator to chart
Use default settings
Wait for BUY/SELL labels
Enter on next candle open
Use 2:1 risk/reward ratio
Always use stop losses
For Advanced Traders:
Adjust parameters for your trading style
Combine with support/resistance levels
Use volume confirmation
Scale in/out of positions
Track performance by regime
Risk Management Guidelines:
Position Sizing:
Conservative: 1-2% risk per trade
Moderate: 2-3% risk per trade
Aggressive: 3-5% risk per trade (not recommended)
Stop Loss Placement:
BUY signals: Below recent swing low or -2x ATR
SELL signals: Above recent swing high or +2x ATR
Take Profit Targets:
Primary: 2x risk (minimum)
Secondary: Previous support/resistance
Tertiary: Trailing stops after 1.5x risk
IMPORTANT RISK DISCLOSURE
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for every investor. The risk of loss in trading can be substantial. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition.
TDI Fibonacci Volatility Bands Candle Coloring [cryptalent]"This is an advanced Traders Dynamic Index (TDI) candle coloring system, designed for traders seeking precise dynamic analysis. Unlike traditional TDI, which typically relies on a 50 midline with a single standard deviation band (±1 SD), this indicator innovatively incorporates Fibonacci golden ratio multiples (1.618, 2.618, 3.618 times standard deviation) to create multi-layered dynamic bands. It precisely divides the RSI fast line (green line) position into five distinct strength zones, instantly reflecting them on the candle colors, allowing you to grasp market sentiment in real-time without switching to a sub-chart.
Core Calculation Logic:
RSI Period (default 20), Band Length (default 50), and Fast MA Smoothing Period (default 1) are all adjustable.
The midline is the Simple Moving Average (SMA) of RSI, with upper and lower bands calculated by multiplying Fibonacci multiples with Standard Deviation (STDEV), generating three dynamic band sets: 1.618, 2.618, and 3.618.
Traders can quickly identify the following scenarios:
Extreme Overbought Zone (Strong Bullish, Red): Fast line exceeds custom threshold (default 82) and breaks above the specified band (default 2.618). This often signals overheating, potentially a profit-taking point or reversal short entry, especially at trend tops.
Extreme Oversold Zone (Strong Bearish, Green): Fast line drops below custom threshold (default 28) and breaks below the specified band (default 2.618). This is a potential strong rebound starting point, ideal for bottom-fishing or long entries.
Medium Bullish Zone (Yellow): Fast line surpasses medium threshold (default 66) and stands above the specified band (default 1.618), indicating bullish dominance in trend continuation.
Medium Bearish Zone (Orange): Fast line falls below medium threshold (default 33) and breaks below the specified band (default 1.618), signaling bearish control in segment transitions.
Neutral Zone (No Color Change): Fast line within custom upper and lower limits (default 34~65), retaining original candle colors to avoid noise interference during consolidation.
Color priority logic flows from strong to weak (Extreme > Medium > Neutral), ensuring no conflicts. All parameters are highly customizable, including thresholds, band selections (1.618/2.618/3.618/Midline/None), color schemes, and even optional semi-transparent background coloring (default off, transparency 90%) for enhanced visual layering.
Applicable Scenarios:
Intraday Trading: Capture extreme color shifts as entry/exit signals.
Swing Trading: Use medium colors to confirm trend extensions.
Long-Term Trend Following: Filter noise in neutral zones to focus on major trends.
Supports various markets like forex, stocks, and cryptocurrencies. After installation, adjust parameters in settings to match your strategy, and combine with other indicators like moving averages or support/resistance for improved accuracy.
If you're a TDI enthusiast, this will make your trading more intuitive and efficient!
Adaptive MFT Extremum Pivots [Elysian_Mind]Adaptive MFT Extremum Pivots
Overview:
The Adaptive MFT Extremum Pivots indicator, developed by Elysian_Mind, is a powerful Pine Script tool that dynamically displays key market levels, including Monthly Highs/Lows, Weekly Extremums, Pivot Points, and dynamic Resistances/Supports. The term "dynamic" emphasizes the adaptive nature of the calculated levels, ensuring they reflect real-time market conditions. I thank Zandalin for the excellent table design.
---
Chart Explanation:
The table, a visual output of the script, is conveniently positioned in the bottom right corner of the screen, showcasing the indicator's dynamic results. The configuration block, elucidated in the documentation, empowers users to customize the display position. The default placement is at the bottom right, exemplified in the accompanying chart.
The deliberate design ensures that the table does not obscure the candlesticks, with traders commonly situating it outside the candle area. However, the flexibility exists to overlay the table onto the candles. Thanks to transparent cells, the underlying chart remains visible even with the table displayed atop.
In the initial column of the table, users will find labels for the monthly high and low, accompanied by their respective numerical values. The default precision for these values is set at #.###, yet this can be adjusted within the configuration block to suit markets with varying degrees of volatility.
Mirroring this layout, the last column of the table presents the weekly high and low data. This arrangement is part of the upper half of the table. Transitioning to the lower half, users encounter the resistance levels in the first column and the support levels in the last column.
At the center of the table, prominently displayed, is the monthly pivot point. For a comprehensive understanding of the calculations governing these values, users can refer to the documentation. Importantly, users retain the freedom to modify these mathematical calculations, with the table seamlessly updating to reflect any adjustments made.
Noteworthy is the table's persistence; it continues to display reliably even if users choose to customize the mathematical calculations, providing a consistent and adaptable tool for informed decision-making in trading.
This detailed breakdown offers traders a clear guide to interpreting the information presented by the table, ensuring optimal use and understanding of the Adaptive MFT Extremum Pivots indicator.
---
Usage:
Table Layout:
The table is a crucial component of this indicator, providing a structured representation of various market levels. Color-coded cells enhance readability, with blue indicating key levels and a semi-transparent background to maintain chart visibility.
1. Utilizing a Table for Enhanced Visibility:
In presenting this wealth of information, the indicator employs a table format beneath the chart. The use of a table is deliberate and offers several advantages:
2. Structured Organization:
The table organizes the diverse data into a structured format, enhancing clarity and making it easier for traders to locate specific information.
3. Concise Presentation:
A table allows for the concise presentation of multiple data points without cluttering the main chart. Traders can quickly reference key levels without distraction.
4. Dynamic Visibility:
As the market dynamically evolves, the table seamlessly updates in real-time, ensuring that the most relevant information is readily visible without obstructing the candlestick chart.
5. Color Coding for Readability:
Color-coded cells in the table not only add visual appeal but also serve a functional purpose by improving readability. Key levels are easily distinguishable, contributing to efficient analysis.
Data Values:
Numerical values for each level are displayed in their respective cells, with precision defined by the iPrecision configuration parameter.
Configuration:
// User configuration: You can modify this part without code understanding
// Table location configuration
// Position: Table
const string iPosition = position.bottom_right
// Width: Table borders
const int iBorderWidth = 1
// Color configuration
// Color: Borders
const color iBorderColor = color.new(color.white, 75)
// Color: Table background
const color iTableColor = color.new(#2B2A29, 25)
// Color: Title cell background
const color iTitleCellColor = color.new(#171F54, 0)
// Color: Characters
const color iCharColor = color.white
// Color: Data cell background
const color iDataCellColor = color.new(#25456E, 0)
// Precision: Numerical data
const int iPrecision = 3
// End of configuration
The code includes a configuration block where users can customize the following parameters:
Precision of Numerical Table Data (iPrecision):
// Precision: Numerical data
const int iPrecision = 3
This parameter (iPrecision) sets the precision of the numerical values displayed in the table. The default value is 3, displaying numbers in #.### format.
Position of the Table (iPosition):
// Position: Table
const string iPosition = position.bottom_right
This parameter (iPosition) sets the position of the table on the chart. The default is position.bottom_right.
Color preferences
Table borders (iBorderColor):
// Color: Borders
const color iBorderColor = color.new(color.white, 75)
This parameters (iBorderColor) sets the color of the borders everywhere within the window.
Table Background (iTableColor):
// Color: Table background
const color iTableColor = color.new(#2B2A29, 25)
This is the background color of the table. If you've got cells without custom background color, this color will be their background.
Title Cell Background (iTitleCellColor):
// Color: Title cell background
const color iTitleCellColor = color.new(#171F54, 0)
This is the background color the title cells. You can set the background of data cells and text color elsewhere.
Text (iCharColor):
// Color: Characters
const color iCharColor = color.white
This is the color of the text - titles and data - within the table window. If you change any of the background colors, you might want to change this parameter to ensure visibility.
Data Cell Background: (iDataCellColor):
// Color: Data cell background
const color iDataCellColor = color.new(#25456E, 0)
The data cells have a background color to differ from title cells. You can configure this is a different parameter (iDataColor). You might even set the same color for data as for the titles if you will.
---
Mathematical Background:
Monthly and Weekly Extremums:
The indicator calculates the High (H) and Low (L) of the previous month and week, ensuring accurate representation of these key levels.
Standard Monthly Pivot Point:
The standard pivot point is determined based on the previous month's data using the formula:
PivotPoint = (PrevMonthHigh + PrevMonthLow + Close ) / 3
Monthly Pivot Points (R1, R2, R3, S1, S2, S3):
Additional pivot points are calculated for Resistances (R) and Supports (S) using the monthly data:
R1 = 2 * PivotPoint - PrevMonthLow
S1 = 2 * PivotPoint - PrevMonthHigh
R2 = PivotPoint + (PrevMonthHigh - PrevMonthLow)
S2 = PivotPoint - (PrevMonthHigh - PrevMonthLow)
R3 = PrevMonthHigh + 2 * (PivotPoint - PrevMonthLow)
S3 = PrevMonthLow - 2 * (PrevMonthHigh - PivotPoint)
---
Code Explanation and Interpretation:
The table displayed beneath the chart provides the following information:
Monthly Extremums:
(H) High of the previous month
(L) Low of the previous month
// Function to get the high and low of the previous month
getPrevMonthHighLow() =>
var float prevMonthHigh = na
var float prevMonthLow = na
monthChanged = month(time) != month(time )
if (monthChanged)
prevMonthHigh := high
prevMonthLow := low
Weekly Extremums:
(H) High of the previous week
(L) Low of the previous week
// Function to get the high and low of the previous week
getPrevWeekHighLow() =>
var float prevWeekHigh = na
var float prevWeekLow = na
weekChanged = weekofyear(time) != weekofyear(time )
if (weekChanged)
prevWeekHigh := high
prevWeekLow := low
Monthly Pivots:
Pivot: Standard pivot point based on the previous month's data
// Function to calculate the standard pivot point based on the previous month's data
getStandardPivotPoint() =>
= getPrevMonthHighLow()
pivotPoint = (prevMonthHigh + prevMonthLow + close ) / 3
Resistances:
R3, R2, R1: Monthly resistance levels
// Function to calculate additional pivot points based on the monthly data
getMonthlyPivotPoints() =>
= getPrevMonthHighLow()
pivotPoint = (prevMonthHigh + prevMonthLow + close ) / 3
r1 = (2 * pivotPoint) - prevMonthLow
s1 = (2 * pivotPoint) - prevMonthHigh
r2 = pivotPoint + (prevMonthHigh - prevMonthLow)
s2 = pivotPoint - (prevMonthHigh - prevMonthLow)
r3 = prevMonthHigh + 2 * (pivotPoint - prevMonthLow)
s3 = prevMonthLow - 2 * (prevMonthHigh - pivotPoint)
Initializing and Populating the Table:
The myTable variable initializes the table with a blue background, and subsequent table.cell functions populate the table with headers and data.
// Initialize the table with adjusted bgcolor
var myTable = table.new(position = iPosition, columns = 5, rows = 10, bgcolor = color.new(color.blue, 90), border_width = 1, border_color = color.new(color.blue, 70))
Dynamic Data Population:
Data is dynamically populated in the table using the calculated values for Monthly Extremums, Weekly Extremums, Monthly Pivot Points, Resistances, and Supports.
// Add rows dynamically with data
= getPrevMonthHighLow()
= getPrevWeekHighLow()
= getMonthlyPivotPoints()
---
Conclusion:
The Adaptive MFT Extremum Pivots indicator offers traders a detailed and clear representation of critical market levels, empowering them to make informed decisions. However, users should carefully analyze the market and consider their individual risk tolerance before making any trading decisions. The indicator's disclaimer emphasizes that it is not investment advice, and the author and script provider are not responsible for any financial losses incurred.
---
Disclaimer:
This indicator is not investment advice. Trading decisions should be made based on a careful analysis of the market and individual risk tolerance. The author and script provider are not responsible for any financial losses incurred.
Kind regards,
Ely
[RickAtw] O1 Opening Market LineThis indicator helps to identify current support and resistance based on the opening of the Asian, London and New York sessions.
Function
You can make good trade entries based on these lines. Shows daily and weekly openings of each session
It will also help you to look at which session you are currently trading)
Purple ----> Asian session
Red ----> London session
Blue ----> New York session
Key Signal
buy ---> A strong buy signal is a bounce from the low and the presence of a weekly or day open line.
sell ---> A strong sell signal is a bounce from the maximum and the presence of a weekly or day open line.
P.S. Be sure to test on your pair!
Remarks
This will help you determine the approximate area of support and resistance.
Since we cannot look into the future, it does not inform you about the exact records, but a possible change in trends.
Readme
In real life, I am a professional investor. And I check each of my indicators on my portfolio and how effective it is. I will not post a non-working method. The main thing is to wait for the beginning of trends and make money!
I would be grateful if you subscribe ❤️
摆动点标注**摆动点标注(Swing HL)**
本指标用于在价格图表上标示摆动高点与摆动低点,以辅助用户观察价格结构、波段节奏及潜在支撑/阻力区域。标注以圆点形式叠加在主图上,可通过参数灵活控制显示周期、敏感度及视觉样式,适合作为价格结构分析的辅助工具。
### 参数及用法说明
1. **最小显示时间框架(minSwingTf)**
* 用途:设定摆动点开始显示的最小周期。
* 当前图表周期小于该设置时,不显示任何摆动标注。
* 建议:
* 做中短线结构分析时,可设置为 240 分钟或更高;
* 若需要在更小周期观察结构,可适当降低该参数。
2. **left / right(leftBars / rightBars)**
* 用途:共同控制摆动高点、低点识别的“严格程度”和频率。
* 调整建议:
* 数值较小:标注更频繁,适合关注细节波动、短线结构;
* 数值较大:只保留更明显的摆动点,适合观察中期或波段结构;
* 当图表上摆动点过多、显得拥挤时,可适当增大这两个参数。
3. **标注颜色(dotColor)**
* 用途:设置摆动点圆标的颜色。
* 建议根据图表背景及主图颜色进行调整,以保证摆动点清晰可见但不过于抢眼。
4. **线宽(dotWidth)**
* 用途:控制圆点标注的线宽,从而影响圆点的视觉大小。
* 当需要在高密度数据或缩放较小时保持清晰,可适当增大该数值。
### 使用建议
* 可将本指标作为结构辅助层叠加在任何交易系统之上,用于直观划分价格的波段高低点。
* 进行多周期分析时,可在较大周期(如 4H、日线)上利用本指标确认整体结构,再配合小周期执行入场与风控。
* 当摆动点过多时,可通过提高 `minSwingTf` 或增加 `left` / `right` 参数,使结构标注更加简洁清晰。
* 本指标仅提供价格摆动结构的可视化标注,不直接构成完整的交易信号或策略规则,建议与个人既有分析方法结合使用。
---
**Swing HL – Swing High/Low Marker**
This indicator marks swing highs and swing lows on the price chart to assist in reading price structure, swing rhythm, and potential support/resistance zones. Markers are plotted as dots on the main chart, and display behavior can be fully controlled via user inputs such as minimum timeframe, sensitivity, and visual style. It is designed to serve as a structural overlay for discretionary or systematic analysis.
### Inputs and Usage
1. **Minimum Display Timeframe (minSwingTf)**
* Purpose: Defines the minimum timeframe on which swing markers will be shown.
* When the current chart timeframe is below this setting, all swing markers are hidden.
* Guidance:
* For swing or position-style structure analysis, consider using 4H or higher;
* For intraday structural work, you may lower this value as needed.
2. **left / right (leftBars / rightBars)**
* Purpose: Jointly control how strict and how frequent swing highs and lows are marked.
* Tuning:
* Smaller values: More frequent swings, suitable for detailed, lower-timeframe structure;
* Larger values: Only more pronounced swings are kept, suitable for higher-level trend and swing mapping;
* If the chart becomes crowded with markers, increasing these values will simplify the structure.
3. **Marker Color (dotColor)**
* Purpose: Sets the color of the swing markers.
* It is recommended to choose a color that contrasts with the background and main price plot while remaining visually unobtrusive.
4. **Line Width (dotWidth)**
* Purpose: Controls the line width of the dot markers, effectively adjusting their perceived size.
* On dense charts or when zoomed out, a larger value can help maintain readability.
### Practical Notes
* Use this indicator as a structural overlay to highlight swing highs and lows alongside your existing trading tools and methods.
* In multi-timeframe workflows, it can help outline the main structure on higher timeframes (e.g., 4H, Daily), which you then refine on lower timeframes for execution.
* If too many swing points appear, either increase `minSwingTf` or raise the `left` / `right` values to obtain a cleaner structural view.
* The script is intended as a visualization aid for price swings; it does not, by itself, define entry, exit, or risk management rules and should be integrated into a broader analytical framework.
Prev Day ±1% BoundaryThis indicator plots dynamic intraday price bands based on the previous day’s close. It calculates a reference price using yesterday’s daily close and draws:
An upper boundary at +1% above the previous close
A lower boundary at –1% below the previous close
These levels are shown as horizontal lines across all intraday bars, with an optional shaded zone between them.
How to use:
Use the boundaries as intraday reference levels for potential support, resistance, or mean-reversion zones.
When price trades near the upper band, it may indicate short-term extension to the upside relative to the prior close.
When price trades near the lower band, it may indicate short-term extension to the downside.
The shaded region between the lines highlights a ±1% normal fluctuation zone around the previous day’s closing price.
This tool is especially useful for intraday traders on indices like SPX, providing quick visual context for how far price has moved relative to the prior session’s close.
Machine Learning: Support and Resistance [YinYangAlgorithms]Overview:
Support and Resistance is normally based upon Pivot Points and Highest Highs and Lowest Lows. Many times coders even incorporate Volume, RSI and other factors into the equation. However there may be a downside to doing a pure technical approach based on historical levels. We live in a time where Machine Learning is becoming more and more used; thus we have decided to create a Machine Learning Support and Resistance Projection based Indicator. Rather than using traditional Support and Resistance calculations using historical data, we have taken a rather different approach. This Indicator instead attempts to Predict and Project where Support and Resistance locations will be based on a Machine Learning Model using a form of KNN (k-Nearest Neighbors).
Since this indicator creates a Projection of where it deems Support and Resistance will be, it has the ability to move its Support and Resistance before the price even gets to it if it believes it will surpass its projections. This may create a more accurate placement of Support and Resistance as they’re not based on historical levels.
This Indicator does not Repaint.
How it works:
This Indicator makes its projections based on the source you provide (by default close) of the previous bar and submits the source, RSI and EMA to our Projection Function to get its projection of the current bar.
The Projection function essentially calculates potential movement after finding the differences between the source the MA from the current bar, previous bar and average over the span of Machine Learning Length.
Potential movement is defined as:
Average Difference + Average(Machine Learning Average, Average Last Distance)
Average Difference: (Absolute value of Current Source - Current MA) - (Absolute value of Machine Learning Average - Machine Learning MA)
Average Last Distance: Average(Current Source - Current MA, Previous Source - Previous MA)
It then predicts the next bars directional movement (bullish or bearish bar) using several factors:
Previous Source > Previous MA
Current Source - Current MA > Average Source - Average MA
Current RSI > Previous RSI
Current RSI > 30 and Previous RSI <= 30
Current RSI < 70 and Previous RSI >= 70
This helps us to predict the direction the next bar may move.
We then calculate a multiplier that we apply to our Potential Movement value to get our final result which is our Current Bars Close Projection.
Our multiplier is calculated using:
(Current RSI > 30 and Previous RSI <= 30) OR (Current RSI < 70 and Previous RSI >= 70)
Current Source - Current MA > Previous Source - Previous MA
We then create an array and fill it with the previous X projections (Machine Learning Length) and send it to another function. This function, if told to, will sort the data accordingly and then output the KNN average of the length given.
We calculate and plot various KNN lengths to create different Zones:
Strong Support: Length of 2 but sort the data Ascending (low to high)
Strong Resistance: Length of 2 but sort the data Descending (high to low)
Support: Length of Machine Length Length / 10 or Min of 2 sorted by Ascending
Resistance: Length of Machine Length Length / 10 or Min of 2 sorted by Descending
There are also 4 other plots you may be wondering what they are, there is your AVG, VWMA, Long Term Memory and Current Projection.
By default your Current Projection is disabled in settings but you can enable it if you are curious to see how the projections for each close are calculated. It is, however, not a crucial point of interest (white line).
The average is simply the average value of the Machine Learning Data (purple line).
The VWMA is a VWMA calculation applied to our Data over a length specified in settings (by default 1)(blue line). The VWMA is crucial when combined with the Avg as they can cross over and under each other. These crosses represent potential Bullish and Bearish zones.
Lastly, but certainly not least, we have the Long Term Memory (maroon line). The Long Term Memory can be displayed either as an ‘Average’, ‘Hard Line’ or ‘None’. The Long Term Average is only updated every Machine Learning Length Bar Index’s and is populated with the average of the Machine Learning Data. For Instance, if Machine Learning Length is set to 100, the Long Term Memory is only updated every 100 bars, and since its length is the same as the Machine Learning Length, that means its data is composed of 10,000 bars worth of data. The Long Term Memory may be very beneficial for determining where Support and Resistance lie over the Long Term within a Machine Learning Algorithm. When set to ‘Average’ it plots the connection lines diagonally, and although they may be more visually appealing, they’re less useful when it comes to actually seeing support and resistance as generally speaking, support and resistance lie on the horizontal. When set to ‘Hard Line’ the Long Term Memory is connected with hard lines and holds the price value until the next time it is updated. This makes it much more useful for potentially identifying Support and Resistance.
Tutorial:
Here is an overview of what the Indicator looks like, now let's start to dissect it.
In the example above we can see how all of the lines between the Major Support and Resistance zones may act as BOTH Support and Resistance depending on which side the price is currently on. In the circle on the left, we can see how it can fluctuate between the two. If you look at the circle on the right, we can see how the Average line acts as a strong support before it fails to maintain it. Generally speaking, most Support and Resistance locations may potentially fail to hold after 3 tests, as the Average did in this example.
As you can see, the Support and Resistance doesn’t wait to be tested before adjusting, which is why there are 2 lines which create their zones. The inner line is the Support/Resistance and the outer line is the Strong Support/Resistance. The Yellow Circle shows the inner line was able to calculate the moving resistance correctly and then adjusted accordingly as it was projecting the price to keep increasing. However, if you look at the White Circle, you can see that since there was first a crash, and then parabolic movement, that the inner zone could not move and predict the resistance as well as the outer zone could.
We consider the price to be ‘Overvalued’ when it is above the VWMA (blue line) and ‘Undervalued’ when it is below the VWMA. It is considered ‘fair’ price when it is within the VWMA to Average zone (between the blue and purple lines). If you look at the example above, you’ll notice where the two yellow circles are, it is not only considered ‘Overvalued’, but it then proceeds to ride the inner resistance line upwards. This is common when the market is overly bullish and vice versa when it is bearish. Please keep in mind, although it is common, it doesn’t mean a correction can’t happen.
In this example above we look at the last bull run that may have started due to the halving. This bull run was very bullish as you can see in the example above. The price was constantly sitting within the Resistance Zone and the VWMA that was very close to it was constantly acting as a Support. Naturally, due to the Algorithm used in this Indicator, as the momentum starts to slow down, the VWMA (blue line) will start to space out more and more from the Resistance Zone. This doesn’t mean the momentum is gone, it just means it may be slowing down.
Unfortunately we have to study the Bear Market with a different perspective than the Bull Market. However, there are still some similarities within the two. If you refer to the example above and the previous example, you can clearly see that the Bull Market loves to stay with the Resistance Zone and use the VWMA as a Support. However, the Bear Market does not. This is a normal occurrence, however we can see from the example above you may see a correction / horizontal movement when the Outer Support Line is touched. If you look at all 3 yellow circles, the Outer Support Line was touched, then either a small correction or horizontal consolidation occurred.
We will conclude our Tutorial here, hopefully you’ll be able to benefit from a moving Support and Resistance calculated with Machine Learning that projects its locations, rather than using traditional calculations.
Settings:
Source: This source is the base for all our calculations
Machine Learning Length: How much projection data are we storing and using to make calculations.
Smoothing Length: We need to smooth calculations such as RSI, EMA and VWMA. What length are we smoothing it with?
VWMA ML Projection Length: How far into our Machine Learning data should we average for our VWMA. Please note the 'Smoothing Length' is still applied here after getting the Projection Average.
Long Term Memory: Long term memory has the same storage length but is only updated once per Machine Learning Length. For instance, if Machine Learning Length is 100, it will save the Average of our data once every 100 bars. This means its memory is an average of 10,000 bars of Machine Learning. 'Average' connects its values diagonally whereas 'Hard Line' holds its value until it changes.
Use Average Last Distance In Potential Movement: This can help accuracy but generally also displaces the Support and Resistance by projecting it further.
Show Current Projection: Projections occur for each bar, and our Machine Learning utilizes these projections by storing and evaluating them. This toggle will display the Current Projection Line which is used to create all our Projections.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!






















